package top.suven.base.http.config;

import top.suven.base.util.constants.GlobalConstants;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration("httpServiceConfig")
@ConfigurationProperties(GlobalConstants.GC_SERVER_PARAM)
public class HttpServiceConfig {
    private boolean checkParamSign;
    private String validType = "ALL";
    private boolean logAop;


    public boolean isCheckParamSign() {
        return checkParamSign;
    }

    public void setCheckParamSign(boolean checkParamSign) {
        this.checkParamSign = checkParamSign;
    }

    public String getValidType() {
        return validType;
    }

    public void setValidType(String validType) {
        if(null != validType && !"".equalsIgnoreCase(validType))
        this.validType = validType;
    }
    public boolean isLogAop() {
        return logAop;
    }

    public void setLogAop(boolean logAop) {
        this.logAop = logAop;
    }
}
